/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.xd.domain.bo.DocumentFlowHandleBO;
import com.xy.biz.xd.domain.query.DocumentFlowHandleQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-2-4
 */
public interface DocumentFlowHandleManager {

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentFlowHandle(Collection<DocumentFlowHandleBO> collection);

	/**
	 * 更新
	 *
	 * @param documentFlowHandleBO
	 */
	int updateDocumentFlowHandle(DocumentFlowHandleBO documentFlowHandleBO);

	/**
	 * 删除
	 *
	 * @param documentFlowHandleId
	 */
	int deleteDocumentFlowHandle(Long documentFlowHandleId);

	/**
	 * 查找一个
	 *
	 * @param documentFlowHandleId
	 * @return
	 */
	DocumentFlowHandleBO getDocumentFlowHandle(Long documentFlowHandleId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<DocumentFlowHandleBO> listDocumentFlowHandleById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<DocumentFlowHandleBO> listDocumentFlowHandle(DocumentFlowHandleQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countDocumentFlowHandle(DocumentFlowHandleQuery query);

	/**
	 * 获取某个流程节点的最新处理人
	 * @param query
	 * @return
	 */
	DocumentFlowHandleBO getLastPhaseHandle(DocumentFlowHandleQuery query);
}
